import requests


def api(path):
    return 'http://localhost:5000/' + path


s = requests.session()
d = s.post(api('login'), json={
    'user_number': '60',
    'password': '60'
}).json()
print(d)

r = s.get(api('users'), headers={
    'X-Token': d['token']
})
print('{}: {}'.format(r.status_code, r.json()))
